﻿using System.Collections.Generic;
using Caffeine.Examples.Contacts.ViewModel;

namespace Caffeine.Examples.Contacts.Repository
{
    public interface IContactRepository
    {
        IEnumerable<ContactViewModel> GetContacts();

        IEnumerable<AddressViewModel> GetContactAddresses(ContactViewModel viewModel);

        void SaveContact(ContactViewModel contactViewModel);

        void RemoveContact(ContactViewModel viewModel);

        void SaveAddress(AddressViewModel address);

        void RemoveAddress(AddressViewModel address);
    }
}
